<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <title>ScotEduBlogs <%= controller.controller_name %>: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'styles' %>
  <%= javascript_include_tag :defaults %>
  <%= javascript_include_tag "slider.js" %>
  
</head>
<body>
    <div id="wrap">
	<div id="main">
		<div id="header">
		
		<div id="navdiv">
					<ul id="nav">	
					<% ["news","blogs", "stats"].each do |control_item| -%>		
						<li <%= "id=\"active\"" if params[:controller]==control_item %>>
						  <a href="<%= url_for :controller=>control_item %><%= "?new_filter=true" if control_item=="blogs"%>"><%=control_item.capitalize%></a>
						</li>
				    <% end -%>
				        <li><%= link_to "Add a Blog", :controller=>"blogs", :action=>"new"%></li>
                         <li><a href="http://wiki.scotedublogs.org.uk">Wiki</a></li>
					</ul>
					</div>
						</div><%=image_tag("indicator.gif", :id=> "update_indicator", :style=>'display: none')%>
			<%= yield  %>
				<div id="footer">
			All content aggregated on this site remains copyright of the original publishers.  If you object to your content being aggregated on this site, please let us know via the wiki, and we will remove your blog.
		</div>
		</div>
</div>


</body>
</html>
